import request from '@/utils/request'

  export function getPageList(data) {
    return request({
      url: '/quartz/getJobList',
      method: 'post',
      data:data
    })
  }

  export function getSchdulerStatus() {
    return request({
      url: '/quartz/scheduler_status',
      method: 'post',
    })
  }

  export function startSchduler() {
    return request({
      url: '/quartz/start_scheduler',
      method: 'post',
    })
  }

  export function stopSchduler() {
    return request({
      url: '/quartz/stop_scheduler',
      method: 'post',
    })
  }

  export function deleteTask(data) {
    return request({
      url: '/quartz/task_delete',
      method: 'post',
      data:data
    })
  }

  export function startTask(data) {
    return request({
      url: '/quartz/task_continue',
      method: 'post',
      data:data
    })
  }

  export function stopTask(data) {
    return request({
      url: '/quartz/task_stop',
      method: 'post',
      data:data
    })
  }

  export function addTask(data) {
    return request({
      url: '/quartz/add_task',
      method: 'post',
      data:data
    })
  }

  export function updateTask(data) {
    return request({
      url: '/quartz/updateJob',
      method: 'post',
      data:data
    })
  }